package com.gjintel.framework.log.service.impl;

import java.util.Date;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gjintel.framework.log.dao.ILogInfoDao;
import com.gjintel.framework.log.model.LogInfo;
import com.gjintel.framework.log.service.ILogInfoService;
import com.gjintel.sdk.base.dao.Page;
import com.gjintel.sdk.base.dao.Sort;
import com.gjintel.sdk.base.service.impl.BaseServiceImpl;

/**
 * @description 业务实现
 * @author fengya
 * @date 2015-8-4 下午02:45:21
 */
@Service("logInfoService")
public class LogInfoServiceImpl extends BaseServiceImpl implements ILogInfoService {

	@Autowired
	private ILogInfoDao logInfoDao;

	@SuppressWarnings("unchecked")
	@Override
	public void findAll(Page page, LogInfo log, Sort sort, Date startTime, Date endTime) {
		this.logInfoDao.findAll(page, log, sort, startTime, endTime);
	}

	@Override
	public void removeData(String deleteIds) throws Exception {
		this.removeById(LogInfo.class, deleteIds.split(","));
	}

	@Override
	public LogInfo getLogInfoById(String id) {
		
		return logInfoDao.getLogInfoById(id);
	}
}
